import json

from config import BASE_DIR


def ReadJsonTools(name):
    with open(name,encoding="utf8")as f:
        data_list=json.load(f)
        new_list=[]
        for data in data_list:
            new_data=tuple(data.values())
            new_list.append(new_data)
        return new_list

if __name__ == '__main__':
    print(ReadJsonTools(BASE_DIR + "/data/ihrm_longin.json"))
